import request from "@/utils/request";

// 查询导入模板列表
export function listCfg(query) {
  return request({
    url: "/service-ry/template/cfg/list",
    method: "get",
    params: query,
  });
}

// 查询导入模板详细
export function getCfg(id) {
  return request({
    url: "/service-ry/template/cfg/" + id,
    method: "get",
  });
}

// 新增导入模板
export function addCfg(data) {
  return request({
    url: "/service-ry/template/cfg",
    method: "post",
    data: data,
  });
}

// 修改导入模板
export function updateCfg(data) {
  return request({
    url: "/service-ry/template/cfg",
    method: "put",
    data: data,
  });
}

// 删除导入模板
export function delCfg(id) {
  return request({
    url: "/service-ry/template/cfg/" + id,
    method: "delete",
  });
}

// 导出导入模板
export function exportCfg(query) {
  return request({
    url: "/service-ry/template/cfg/export",
    method: "get",
    params: query,
  });
}
